package com.jymj.dao;

import com.jymj.entity.RtExpect;
import com.jymj.entity.view.RtExpectTask;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by ljj on 2017/8/25.
 */
@Mapper
public interface RtExpectDao {

    int saveData(RtExpect rtExpect);//单条导入数据

    int insertSome(List<RtExpect> rtExpect);//批量导入数据

    List<RtExpect> selectByPjid(Integer pjid);//按照项目编号查询

    List<RtExpect> selectAll();//全查询

    void delByPjid(Integer pjid);//按项目编号删除

    void save(RtExpect rtExpect);

    void update(RtExpect rtExpect);

    void delete(Integer id);

    RtExpectTask queryObjectParent(Map<String, Object> map);

    RtExpectTask queryObject1(Map<String, Object> map);

    void updateParentCost(RtExpect rtExpect);

    List<RtExpectTask> queryList(Map<String, Object> map);

    RtExpect queryObject(Integer id);

    List<RtExpect> queryAll(Integer pjid);
}
